package persistence.dto;

import core.StorageUnit;

public class StorageUnitDTO
{
	private int id;
	private String name;
	private String type;
	private int parentID; 
	/**
	 * instantiates a new storage unit DTO
	 * @param id the unique id assigned to the storage unit
	 * @param name the name assigned to the storage unit
	 */
	public StorageUnitDTO(int id, String name)
	{
		this.id = id;
		this.name = name;
		this.type = "storage unit";
		this.parentID = 0; // this represents null, meaning no parent
	}
	
	/**
	 * gets the unique id assigned to this storage unit
	 * @return the unique id
	 */
	public int getId()
	{
		return id;
	}
	
	/**
	 * returns the name of the storage unit
	 * @return the name of the storage unit
	 */
	public String getName()
	{
		return name;
	}
	
	/**
	 * returns the type of this product container
	 * @return returns the type
	 */
	public String getType()
	{
		return type;
	}
	
	/**
	 * returns the id of the parent container
	 * @return returns the parents unique id
	 */
	public int getParentID()
	{
		return parentID;
	}

}
